Builder

class Builder

A builder of ContentType.

Builders are created by invoking newBuilder.

Each of the setter methods modifies the state of the builder and returns the same instance. Builders are not thread-safe and should not be used concurrently from multiple threads without external synchronization.

Functions

Link copied to clipboard
open fun boundary(boundary: String): ContentType.Builder
Sets the boundary of the multipart/form-data associated with the content type.
Link copied to clipboard
open fun build(): ContentType
Returns a new ContentType instance built from the current state of this builder.
Link copied to clipboard
open fun charset(charset: String): ContentType.Builder
Sets the charset of the data associated with the content type.